local localCtrl = UIManager.Controller(UIManager.ControllerName.MainMenuPanel, UIManager.ViewName.MainMenuPanel)

-- ui bind function implementation

local function ButtonClick()
    UIManager.openController(UIManager.ControllerName.FirstPanel)
end

function localCtrl:onCreat(data)
    view = localCtrl.View

    -- 绑定view的控件
    view.Button.onClick:AddListener(ButtonClick)

    Debug.Log("onCreate FirstPanel controller")
end

function localCtrl:onOpen(data)
    Debug.Log("onOpen FirstPanel controller")
end

function localCtrl:onInteractive(active)
end

function localCtrl:onDestroy()

end